package com.zhj;

import org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI;
import org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI;
import org.jasypt.util.password.BasicPasswordEncryptor;

/**
 * Copyright: Copyright (c) 2020
 *
 * @ClassName: test
 * @Description:
 * @version: v1.0.0
 * @author: zhanghaojie
 * @date: 2020/6/17
 */
public class test {
    public static void main(String[] args) {
        BasicPasswordEncryptor basicPasswordEncryptor =new BasicPasswordEncryptor();
        String s = basicPasswordEncryptor.encryptPassword("123456789");
        System.out.println(basicPasswordEncryptor.checkPassword("123456789","XTbxJZT4qVI9gvUeabpvX7/sK3iwJGz6"));
        System.out.println(s);

    }

}
